import base from "@/utils/global.params.js";
let Mock = require("mockjs");

// 导入交易对生成相关数据
import market from "@/mock/tool/cec.market.js"
import tool from "@/mock/tool/util.tool.js"


// 首页-新币榜-拦截数据
Mock.mock(base.baseUrl + "/index/newlist", "post", (req, res) => {
    return {
        code: 200,
        msg: "新币榜数据请求成功",
        data: market.marketNew || [],
    };
});
// 首页-24H涨幅榜-拦截数据
Mock.mock(base.baseUrl + "/index/amount", "post", (req, res) => {
    return {
        code: 200,
        msg: "24H涨幅榜的数据请求成功",
        data: market.marketAmount || [],
    };
});
// 工具-下载地址
Mock.mock(base.baseUrl + "/util/dowurl", "post", (req, res) => {
    return {
        code: 200,
        msg: "下载地址数据请求成功",
        data: tool.dowArr || [],
    };
});
// 工具-友情链接
Mock.mock(base.baseUrl + "/util/blogroll", "post", (req, res) => {
    return {
        code: 200,
        msg: "下载地址数据请求成功",
        data: tool.blogroll || [],
    };
});
// 工具-轮播图请求
Mock.mock(base.baseUrl + "/util/swiper", "post", (req, res) => {
    return {
        code: 200,
        msg: "下载地址数据请求成功",
        data: tool.swiperArr || [],
    };
});
// 首页-推荐币种
Mock.mock(base.baseUrl + "/index/recommend", "post", (req, res) => {
    return {
        code: 200,
        msg: "下载地址数据请求成功",
        data: tool.recommend || [],
    };
});



